﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<TemplateWeb.Models.ViewModels.GroupViewModel>" %>

<div class="column3">
    <!-- TIN TUC MOI -->
    <div class="Tour_Promotional">
        <div class="Bar_Tour_Promotional">
            <img src="../../../Content/Images/Home/icon_nha_x.gif" alt="" width="22" height="20" />
            <span class="text_bar">TIN TỨC MỚI</span>
        </div>
        <div class="ND_Tour_Promotional">
            <% int count = Model.TinTucNewestModel.GetModel.LstObjModel.Count < WebConfiguration.NumInfoPerPage ? Model.TinTucNewestModel.GetModel.LstObjModel.Count : WebConfiguration.NumInfoPerPage;
               for (int i = 0; i < count; i++)
                { %>
                    <% if (i < count - 1)
                       { %>
                        <div class="Tour_1" style="border-bottom:1px #CCCCCC dashed;">
                    <% }else{ %>
                        <div class="Tour_1" style="border-bottom:none;">
                    <% } %>
                            <div class="Hotel_1">
                                <div style = "margin:0px 5px 5px 0px; display: inline;">
                                    <a id="A3" href="<%= Url.Action("ChiTietTinTuc", "Home", new { id = Model.TinTucNewestModel.GetModel.LstObjModel[i].ID }) %>">
                                        <img id="Img1" class="borImageSmall" src="../../../Content/Images/Items/<%= Model.TinTucNewestModel.GetModel.LstObjModel[i].HinhMinhHoa %>" align="left" style="border-width:1px;border-style:solid;height:70px;width:70px;" />
                                    </a>
				                    <div class="Tin_title">
                                        <a id="A4" href="<%= Url.Action("ChiTietTinTuc", "Home", new { id = Model.TinTucNewestModel.GetModel.LstObjModel[i].ID }) %>"><%= Model.TinTucNewestModel.GetModel.LstObjModel[i].TieuDe%></a>
				                    </div>
				                    <div class="Tin_desc">
                                        <%= Html.Truncate(Model.TinTucNewestModel.GetModel.LstObjModel[i].NoiDungRutGon, WebConfiguration.InfoContentLengthRight)%>
                                    </div>
			                    </div>
                            </div>
                        </div>
             <% } %>
            <div align="right" style="padding-right:5px" class="xemtiep">
		        <a id="A9" href="<%= Url.Action("SelectTinTuc", "Home") %>">>> Xem tiếp</a>
		    </div>
        </div>
    </div>
    <div class="Tour_Promotional">
        <div class="Bar_Tour_Promotional">
            <img src="../../../Content/Images/Home/icon_nha_x.gif" alt="" width="22" height="20" />
            <span class="text_bar">CẨM NANG MỚI</span>
        </div>
        <div class="ND_Tour_Promotional">
             <% count = Model.CamNangNewestModel.GetModel.LstObjModel.Count < WebConfiguration.NumInfoPerPage ? Model.CamNangNewestModel.GetModel.LstObjModel.Count : WebConfiguration.NumInfoPerPage;
                for (int i = 0; i < Model.CamNangNewestModel.GetModel.LstObjModel.Count; i++)
                { %>
                    <% if (i < Model.CamNangNewestModel.GetModel.LstObjModel.Count - 1)
                       { %>
                        <div class="Tour_1" style="border-bottom:1px #CCCCCC dashed;">
                    <% }else{ %>
                        <div class="Tour_1" style="border-bottom:none;">
                    <% } %>
                            <div class="Hotel_1">
                                <div style = "margin:0px 5px 5px 0px; display: inline;">
                                    <a id="A1" href="<%= Url.Action("ChiTietCamNang", "Home", new { id = Model.CamNangNewestModel.GetModel.LstObjModel[i].ID }) %>">
                                        <img id="Img2" class="borImageSmall" src="../../../Content/Images/Items/<%= Model.CamNangNewestModel.GetModel.LstObjModel[i].HinhMinhHoa %>" alt="<%= Model.CamNangNewestModel.GetModel.LstObjModel[i].HinhMinhHoa %>" align="left" style="border-width:1px;border-style:solid;height:70px;width:70px;" />
                                    </a>
				                    <div class="Tin_title">
                                        <a id="A2" href="<%= Url.Action("ChiTietCamNang", "Home", new { id = Model.CamNangNewestModel.GetModel.LstObjModel[i].ID }) %>"><%= Model.CamNangNewestModel.GetModel.LstObjModel[i].TieuDe%></a>
				                    </div>
				                    <div class="Tin_desc">
                                        <%= Html.Truncate(Model.CamNangNewestModel.GetModel.LstObjModel[i].NoiDungRutGon, WebConfiguration.InfoContentLengthRight)%> 
                                    </div>
			                    </div>
                            </div>
                        </div>
             <% } %>
            <div align="right" style="padding-right:5px" class="xemtiep">
		        <a id="A6" href="<%= Url.Action("SelectCamNang", "Home") %>">>> Xem tiếp</a>
		    </div>
        </div>
    </div>
    <!-- TIEN ICH KHAC -->
    <div class="Tour_Promotional">
        <div class="Bar_Tour_Promotional">
            <img src="../../../Content/Images/Home/icon_nha_x.gif" alt="" width="22" height="20" />
            <span class="text_bar">TIỆN ÍCH KHÁC</span>
        </div>
        <div class="ND_Tour_Promotional">
            <div class="weather">
                <div class="rate">
					<img src="../../../Content/Images/Home/weather.png" alt=""/>
					<a href="http://www17.24h.com.vn/ttcb/thoitiet/thoitiet.php" onclick="window.open(this.href, 'popupwindow','width=600,height=650,scrollbars,resizable'); return false;">Thời tiết</a>							
                </div>
                <div class="rate">
					<img src="../../../Content/Images/Home/rate.png" alt=""/>
					<a href="http://www17.24h.com.vn/ttcb/tygia/tygia.php" onclick="window.open(this.href, 'popupwindow','width=600,height=650,scrollbars,resizable'); return false;">Tỉ giá ngoại tệ</a>							
                </div>
                <div class="rate">
					<img src="../../../Content/Images/Home/rate1.png" alt=""/>
					<a href="http://www17.24h.com.vn/ttcb/giavang/giavang.php" onclick="window.open(this.href, 'popupwindow','width=600,height=650,scrollbars,resizable'); return false;">Giá vàng </a>							
                </div>
                <div class="rate">
					<img src="../../../Content/Images/Home/rate.png" alt=""/>
					<a href="http://chungkhoan.24h.com.vn/chungkhoan.php" onclick="window.open(this.href, 'popupwindow','width=600,height=650,scrollbars,resizable'); return false;">Chứng Khoán</a>							
                </div>
            </div>
        </div>
    </div>
    <!-- CÁC TRANG LIEN KET -->
    <div class="Tour_Promotional">
        <div class="Bar_Tour_Promotional">
            <img src="../../../Content/Images/Home/icon_nha_x.gif" alt="" width="22" height="20" />
            <span class="text_bar">CÁC TRANG LIÊN KẾT</span>
        </div>
        <div class="ND_Tour_Promotional">
            <div class="weather">
                <% for (int i = 0; i < Model.LienKetModel.GetModel.LstObjModel.Count; i++)
                   { %>
                    <div class="rate1">
					    <img src="../../../Content/Images/Home/weblink.png" alt=""/>
					    <a href="http://<%= Model.LienKetModel.GetModel.LstObjModel[i].Url %>" target="_blank"><%= Model.LienKetModel.GetModel.LstObjModel[i].TenLienket %></a>							
                    </div>
                <% } %>
            </div>
        </div>
    </div>
    <!-- LUONG NGUOI DUNG -->
    <div class="Tour_Promotional">
        <div class="Bar_Tour_Promotional">
            <img src="../../../Content/Images/Home/icon_nha_x.gif" alt="" width="22" height="20" />
            <span class="text_bar">LƯỢNG NGƯỜI DÙNG</span>
        </div>
        <div class="ND_Tour_Promotional">
            <div class="weather">
                <div class="rate2">
					<img src="../../../Content/Images/Home/stats.png" alt=""/>
					<span>Lượng người truy cập: <%= Application["count_visit"].ToString()%></span>							
                </div>
                <div class="rate2">
					<img src="../../../Content/Images/Home/administrator-icon.png" alt=""/>
					<span>Online hiện thời: <%=Application["OnlineUsers"].ToString()%></span>
                </div>
            </div>
        </div>
    </div>
</div>
